const mysql = require('mysql')

const db = mysql.createPool({
  host: '127.0.0.1',
  user: 'root',
  password: '123456',
  database: 'book',
  multipleStatements:true,
  useConnectionPooling: true
  })

const connection = mysql.createConnection({
    host: '127.0.0.1',
    user: 'root',
    password:'123456',
    database:'book',
    multipleStatements: true,
    useConnectionPooling: true
});

module.exports = connection